using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Org.Loon.Framework.Xna.Game.Action.Scripting
{
    public class WithPosition : UserFunction
    {

        private int x;

        private int y;

        public WithPosition(string name, int x, int y)
            : base(name)
        {

            this.x = x;
            this.y = y;
        }

        public override void Update(ScriptFactory engine, Stack<StackFrame> stack,
                Callback callback)
        {
            callback.Function(GetName(), x, y);
        }

    }

}
